﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Impresion.aspx.cs" Inherits="HerGoS.WebUI.Viaticos.Liquidaciones.Impresion" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Styles/HerGoS-theme/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
<style type="text/css">
        body
        {
            background-color: #FFFFFF;
        }
        .border
        {
            border: 1px #000000 solid;
        }
        .moneda
        {
            text-align:right;
        }
    </style>
<style type="text/css" media="print">
        .ocultar {display:none;}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="float:right" class="ocultar">
        <wce:ButtonExt ID="btnImprimir" runat="server" Text="Imprimir" OnClientClick="window.print(); return false;"/>
    </div>
     <table style="width: 100%; height: 301px; " border="0" cellspacing="1">
        <tr>
            <td align="center" class="border" colspan="2">               
                <b>LIQUIDACIÓN DE PASAJES Y VIATICOS</b>
            </td>
            <td align="center" class="border">
               <b>ANEXO &quot;B&quot;</b></td>
        </tr>
        <tr>
            <td align="center" class="border">PROGRAMA SUMAR</td>
            <td class="border" align="center" style="width:20%">FECHA</td>
            <td class="border" style="width:20%" align="center">
                <asp:Label ID="lblfechaLiquidacion" runat="server" Text="00/00/00"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" class="border">PDSPPS</td>
            <td  class="border" align="center">
                LIQ. Nº:</td>
            <td  class="border" align="center">
                <asp:Label ID="lblNumeroLiquidacion" runat="server" Text="lblNumeroLiquidacion"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" class="border">
                APELLIDO/NOMBRE PASAJERO</td>
            <td colspan="2"  align="center" class="border">
                <b><asp:Label ID="lblApellidoyNombrePasajero" runat="server" Text="lblApellidoyNombrePasajero"></asp:Label></b>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
            <div style="width:120px; text-align:center" class="border">SECCIÓN I</div>                
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" >
                <asp:GridView ID="GridReporteGastos" runat="server" Width="100%" 
                    AutoGenerateColumns="False">
               <Columns>
                   <asp:BoundField DataField="Fecha" HeaderText="Fecha Gasto" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center">
<ItemStyle Width="80px"></ItemStyle>
                   </asp:BoundField>
                 <asp:BoundField DataField="Concepto" HeaderText="Tipo Concepto" 
                       ItemStyle-Width="140px" ItemStyle-HorizontalAlign ="Center" >
<ItemStyle Width="140px"></ItemStyle>
                   </asp:BoundField>
                 <asp:BoundField DataField="CantidadKm" HeaderText="Cant.Km" 
                       ItemStyle-Width="140px" ItemStyle-HorizontalAlign ="Center" >
<ItemStyle Width="140px"></ItemStyle>
                   </asp:BoundField>
                 <asp:BoundField DataField="Valor" HeaderText="Valor" ItemStyle-Width="80px" ItemStyle-HorizontalAlign ="Center">
<ItemStyle Width="80px"></ItemStyle>
                   </asp:BoundField>
                 <asp:TemplateField HeaderText=" (*)"  ItemStyle-Width="20px" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                    <%#  GetCantidadTerminales()%>
                   </ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="20px"></ItemStyle>
                 </asp:TemplateField>
                 <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Monto($)" ItemStyle-Width="100px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("Monto")%> 
                 </ItemTemplate>
                 </asp:TemplateField>
             </Columns>                
                </asp:GridView>


            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td  class="border">
                Total
            </td>
            <td class="border moneda">
                $  <asp:Label ID="lblTotalSeccionI" runat="server" Text="lblTotalSeccionI"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            <div style="width:120px; text-align:center" class="border">SECCIÓN II</div>                
            </td>
           <td>&nbsp;</td>
           <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" >
                <asp:GridView ID="GridReporteTramos" runat="server" Width="100%" 
                    AutoGenerateColumns ="False">
                <Columns>
                    <asp:BoundField DataField="Partida" HeaderText="Partida/Llegada" 
                        ItemStyle-Width="140px" ItemStyle-HorizontalAlign ="Center">              
                   <ItemStyle Width="140px"></ItemStyle>
                    </asp:BoundField>

                    <asp:BoundField DataField="Ciudad" HeaderText="Ciudad" ItemStyle-Width="80px" ItemStyle-HorizontalAlign ="Center" >
                    <ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="ModoViaje" HeaderText="Modo de Viaje" ItemStyle-HorizontalAlign ="Center"
                        ItemStyle-Width="80px">
<ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-Width="80px" ItemStyle-HorizontalAlign ="Center"
                        DataFormatString="{0: dd/MM/yyyy HH:mm:ss}">
<ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="Hora" HeaderText="Hora" ItemStyle-Width="80px" ItemStyle-HorizontalAlign ="Center">
                    <ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="CantidadDias" HeaderText="Cantidad Dias" ItemStyle-Width="80px"   ItemStyle-HorizontalAlign ="Center" >
                     <ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
                <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Monto Diario($)" ItemStyle-Width="100px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("MontoDiario")%> 
                 </ItemTemplate>
                 </asp:TemplateField>
                 
                  <asp:BoundField DataField="PorcentajeViatico" HeaderText="% Viatico"  ItemStyle-Width="80px"  ItemStyle-HorizontalAlign ="Center" >
                    <ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>


                      <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Monto($)" ItemStyle-Width="100px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("Monto")%> 
                 </ItemTemplate>
                 </asp:TemplateField>

     
               </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td  class="border">
                Total:</td>
            <td class="border moneda">
                $  <asp:Label ID="lblTotalSeccionII" runat="server" Text="lblTotalSeccionII"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            <div style="width:120px; text-align:center" class="border">SECCIÓN III</div>                
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="GridReporteAnticipo" runat="server" Width="100%" 
                    AutoGenerateColumns ="False">
                <Columns>
                    <asp:BoundField DataField="FechaAnticipo" HeaderText="Fecha" ItemStyle-HorizontalAlign ="Center"
                        ItemStyle-Width="140px" >              
<ItemStyle Width="140px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="NumeroCheque" HeaderText="N° Cheque" ItemStyle-HorizontalAlign ="Center"
                        ItemStyle-Width="80px" >
<ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
                     <asp:BoundField DataField="AnticipoViaticos" HeaderText="AnticipoViaticos" ItemStyle-HorizontalAlign ="Center"
                        ItemStyle-Width="80px">
<ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>
              
         <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Anticipo($)" ItemStyle-Width="100px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("MontoAnticipo")%> 
                 </ItemTemplate>
                 </asp:TemplateField>

                                                           
               </Columns>
                </asp:GridView>
                
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td class="border">
                Total:</td>
            <td class="border moneda">
                $  <asp:Label ID="lblTotalSeccionIII" runat="server" Text="lblTotalSeccionIII"></asp:Label>
                </td>
        </tr>
        <tr>
            <td colspan="3" class="border" align="center">
                <table border="0" cellpadding="2" cellspacing="5" style="border-collapse:collapse;width:400px; height:80px">
                    <tr>
                        <td align="center" valign="bottom" style="width:50%">
                        <hr />
                        Firma Consultor</td>
                        <td align="center" valign="bottom"><hr />
                        Coordinación General</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td rowspan="4">&nbsp;</td>
            <td class="border">
                <b>Total Sección I</b></td>
            <td class="border moneda">
              $  <asp:Label ID="lblReporteTotalGastos" runat="server" Text="lblReporteTotalGastos"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="border">
                <b>Total Sección II</b></td>
            <td class="border moneda">
                $  <asp:Label ID="lblReporteTotalMontoViatico" runat="server" Text="lblReporteTotalMontoViatico"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="border">
                <b>Total Sección III (menos)</b></td>
            <td class="border moneda">
                $  <asp:Label ID="lblReporteTotalAnticipo" runat="server" Text="lblReporteTotalAnticipo"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="border">
                <b>Total General a Pagar</b></td>
            <td class="border moneda">
                $  <asp:Label ID="lblReporteTotal" runat="server" Text="lblReporteTotal"></asp:Label>
            </td>
        </tr>
    </table>


    </form>
</body>
</html>
